<script src="./js/setCnInput.js" type="text/javascript"></script>
<script src="./js/tinypic.js" type="text/javascript"></script>
<script src="./js/flowers.js" type="text/javascript"></script>
<script src="./js/setFlowers.js" type="text/javascript"></script>
{config_load file=$settings.language_file section="posting"}
{config_load file=$settings.language_file section="thread_entry"}
{if $captcha}{config_load file=$settings.language_file section="captcha"}{/if}

{if $no_authorisation}
<p class="caution">{$smarty.config.$no_authorisation}</p>
{else}
<h1>{if $posting_mode==0 && $id==0}{#new_topic_hl#}{elseif $posting_mode==0 && $id>0}{#reply_hl#}{elseif $posting_mode==1}{#tweet_hl#}{/if}</h1>


{if $errors}
<p class="caution">{#error_headline#}</p>
<ul>
{section name=mysec loop=$errors}
<li>{$errors[mysec]}:{assign var="error" value=$errors[mysec]}{$smarty.config.$error|replace:"[text_length]":$text_length|replace:"[text_maxlength]":$settings.text_maxlength|replace:"[word]":$word|replace:"[minutes]":$minutes|replace:"[not_accepted_word]":$not_accepted_word}</li>
{/section}
</ul>
{elseif isset($minutes_left_to_edit)}
<p class="caution">{if $settings.user_edit_if_no_replies==1}{#minutes_left_to_edit_reply#|replace:"[minutes]":$minutes_left_to_edit}{else}{#minutes_left_to_edit#|replace:"[minutes]":$minutes_left_to_edit}{/if}</p>
{/if}


<form action="index.php" method="post" id="tweetform" accept-charset="{#charset#}"><div style="margin-top:20px;">
<input type="hidden" name="back" value="{$back}" />
<input type="hidden" name="retweet" value="{$retweet}" />
<input type="hidden" name="mode" value="posting" />
{if $p_user_id}<input type="hidden" name="p_user_id" value="{$p_user_id}" />{/if}
<div id="divMsg" style="padding: 0px 0px 10px 1px; color: red;"></div>
<table border="0" cellpadding="0" cellspacing="5" >

<tr>
<td>&nbsp;</td><td>&nbsp;</td>
</tr>
<tr>
<tr>
<td colspan="2"><label for="text" class="main">{#subject_marking#}</label></td>
</tr>
<tr>
<td colspan="2">
<table class="normal" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<textarea  id="subject" style="width:80%;" cols="80" rows="6"  cols="" wrap="virtual" name="subject" length="{$settings.subject_maxlength}" tabindex="6" disabled="disabled">{if $subject}{$subject}{/if}</textarea>
</td><td valign="top" style="padding: 0px 0px 0px 5px;">
</td></tr>
<tr>
<td>&nbsp;</td><td>&nbsp;</td>
</tr><tr>
<tr>
<td colspan="2">&nbsp;<img class="close" src="templates/{$settings.template}/images/tt-twitter-micro3.png" /><label for="twitterit"> twitterit this threads into my twitter. note: As a Twitter, You'll laugh, you'll cry, you'll wonder why - all in 140 characters</label></td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="retweet_posting_confirm" value="{#message_tweet_button#}" title="{#message_tweet_title#}"   />&nbsp;&nbsp;&nbsp;<input type="button" value="Cancel" onclick="window.close()"></td>
<td>&nbsp;</td>
</tr>

<tr>
<td>&nbsp;</td><td>&nbsp;</td>
</tr><tr>
<td>&nbsp;</td><td>&nbsp;</td>
</tr><tr>
<td>&nbsp;</td><td>&nbsp;</td>
</tr>
<tr>
<td colspan="2"><label for="text" class="main">{#message_marking#}</label>{if $hide_quote} &nbsp;<span class="small"><a href="#" onclick="insert_quote(); return false" id="insert_quote_link" style="visibility:hidden;"><img src="templates/{$settings.template}/images/quote_message.png" alt="" width="14" height="9" />{#quote_message#}</a></span>{/if}<!--{if $id != 0 && $action=='posting'} &nbsp;<span class="small"><a href="#" onclick="clear_input('postingform','text'); return false"><img src="templates/{$settings.template}/images/delete_small.png" alt="" width="13" height="9">{#clear_textarea#}</a></span>{/if}--></td>
</tr>
<tr>
<td colspan="2">
<table class="normal" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<textarea id="text" cols="80" rows="10" name="text" length="{$settings.text_maxlength}" tabindex="10"  disabled="disabled">{if $text}{$text}{/if}</textarea>
{if $hide_quote}<script type="text/javascript">/* <![CDATA[ */ hide_quote(); /* ]]> */</script>{/if}</td><td valign="top" style="padding: 0px 0px 0px 5px;">
</td></tr>
</table>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td><td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td><td>&nbsp;</td>
<td>&nbsp;</td>
</tr>

<tr>
<td colspan="2"><input type="submit" name="retweet_posting_confirm" value="{#message_tweet_button#}" title="{#message_tweet_title#}"   />&nbsp;&nbsp;&nbsp;<input type="button" value="Cancel" onclick="window.close()"></td>
<td>&nbsp;</td>
</tr>

</table>
</div></form>
{/if}

